
<div id="content" class="clear">
<div id="main" class="clear">
<div id="head" class="clear">
<h1>Form</h1>
<div id="actions"> 
<a href="http://miniplaneta.pl/encoreadmin/rc/2/table.html" class="button secondary">Cancel</a> 
<a href="http://miniplaneta.pl/encoreadmin/rc/2/table.html" class="button primary">Save changes</a>
</div>
<!-- end page actions-->
</div>
<?php echo validation_errors(); ?>
<?php 
  $conf = array('enctype'=>'multipart/form-data','id'=>"formEditor", 'class'=>"mainForm clear");
  echo form_open('pic/post',$conf);?>
<p id="asterisk"> <span class="star">*</span> Fields marked with asterisk are required.</p>
<legend><span>news image post</span></legend>
<fieldset id="pic" class="clear">

<div class="field clear"> 
<label for="txtName">Pic title <span class="star">*</span></label> 
<input type="text" value="" name="title" class="text medium" id="txtName"> 
<a href="#" class="hint"> <img class="hint" alt="Hint" src="../_i/ico/icohint.png"> <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
<p class="error clear"></p>
</div>
<div class="field clear"> 
<label for="fileUpload">Image upload:</label> 
<input type="file" name="pic[]" class="upload" id="fileUpload">
</div>
<div class="field clear"> 
<label for="areaText">Image description: <span class="star">*</span></label> 
<textarea name="des[]" cols="30" rows="2" class="area longest" id="areaText">This is a textarea...</textarea> 
<a href="#" class="hint"> <img class="hint" alt="Hint" src="../_i/ico/icohint.png"> <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
<p class="error clear"></p>
</div>
</fieldset>
<fieldset class="clear">
 <div class="field clear">
  <input type="button" value="add" onclick="addimg()" />
 </div>
<input type="hidden" name="visits" value=0 />
<input type="hidden" name="created" value=0 />
</fieldset>
 
   <input id="btnSubmit" class="button primary" type="submit" value="Save changes" /> 
   <input id="btnCancel" class="button secondary" type="button" value="Cancel" />
   
</form>
</div>
<div id="sidebar">
   <div id="boxFirst" class="sidebox clear">
   <h1>Sidebar form</h1>
   <div class="boxContent clear">
   <form id="formFilters" class="sideForm" action="#" method="get">
   <fieldset>
<legend>Filters</legend>
<div class="field clear"> 
<label for="txtNameSide">Name:</label> 
<input id="txtNameSide" class="text full" type="text" value="" />
</div>
<div class="field clear"> 
<span class="label">Status:</span>
<div class="multiple"> 
<input id="cbActive" class="checkbox" type="checkbox" checked="checked" /> 
<label for="cbActive">Active</label><br />
 <input id="cbInactive" class="checkbox" type="checkbox" />
<label for="cbInactive">Inactive</label>
</div></div>
<div class="field clear"> 
<span class="label">Range:</span>
<div class="multiple"> 
<label for="txtRangeA">from:</label>
 <input id="txtRangeA" class="text third" type="text" value="0" />
  <label for="txtRangeB">to:</label> 
  <input id="txtRangeB" class="text third" type="text" value="1" />
  </div>
  </div>
  <div class="field clear"> 
  <label for="selDropdownSide">Drop-down list</label>
   <select id="selDropdownSide" class="full"> 
   <option selected="selected">-- select --</option> 
   <option>Option A</option> <option>Option B</option> <option>Option C</option>
<option>Option D</option></select></div><div class="field clear"> <span class="label">Option select:</span><div class="multiple"> <input id="rbActive" class="radio" name="groupStatus" type="radio" checked="checked" /> <label for="rbActive">Active</label><br /> <input id="rbInactive" class="radio" name="groupStatus" type="radio" /> <label for="rbInactive">Inactive</label></div></div><div class="last field clear"> <label for="txtDateSide">Date select:</label> <input id="txtDateSide" class="text half" type="text" value="2010-10-24" /> <a href="#"> <img class="calendar" src="../_i/ico/icocalendar.png" alt="Calendar" title="Click and choose the date" /></a></div> <input id="btnFind" class="button primary" type="submit" value="Find" /></fieldset></form></div></div><div id="help" class="sidebox"><h1>Context help</h1><div class="boxContent clear"><h2>Topic 1</h2>
<p> Lorem ipsum dolor sit amet consectetuer diam dis non ut aliquam. Lorem nibh Pellentesque ut nibh Nunc Suspendisse ut nibh dignissim hac. Nunc augue aliquet tempus non condimentum eget nibh Maecenas elit et.</p><h2>Topic 2</h2><p> Lorem ipsum dolor sit amet consectetuer diam dis non ut aliquam. Lorem nibh Pellentesque ut nibh <a href="#">Nunc Suspendisse</a> ut nibh dignissim hac. Nunc augue aliquet tempus non condimentum eget nibh Maecenas elit et.</p></div></div></div>
</div>
<div id="push">&nbsp;</div>
</div>

<div id="mcategory" style="width:500px; min-height:200px; height:auto; _height:200px; position:absolute; border:solid 5px #666; display:none; left:350px; top:200px; background:#ccc;">
    <div id="close" style="text-align:right; background:#666;"><a href="#" onclick="closeCategory()" style="color:#fff;">CLOSE</a></div>
    <div id="category-content"></div>
</div> 
<div id="picitem" style="display:none;">
		<div class="field clear"> 
		<label class="error" for="txtName">Pic title <span class="star">*</span></label> 
		<input type="text" value="" name="title" class="text medium" id="txtName"> 
		<a href="#" class="hint"> <img class="hint" alt="Hint" src="../_i/ico/icohint.png"> <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
		<p class="error clear">Validation error goes here</p>
		</div>
		<div class="field clear"> 
		<label for="fileUpload">Image upload:</label> 
		<input type="file" name="pic[]" class="upload" id="fileUpload">
		</div>
		<div class="field clear"> 
		<label for="areaText">Image description: <span class="star">*</span></label> 
		<textarea name="des[]" cols="30" rows="5" class="area longest" id="areaText">This is a textarea...</textarea> 
		<a href="#" class="hint"> <img class="hint" alt="Hint" src="../_i/ico/icohint.png"> 
		<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
		<p class="error clear">Validation error goes here</p>
		</div>
</div>
